package com.freesun.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.freesun.shop.entity.User;


/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author zf
 * @since 2019-11-13
 */
public interface UserService extends IService<User> {
    /**
     *通过用户的OpenID,查询ID
     * @return
     */
    User findUserByUsername(String openid);


    User regeister(String openid);

    /**
     * 登录成功后更新登录信息
     * @param user
     */
    void updateUserLoginRec(User user);

    void updateUser(String userId, String nickName, String pic);
}
